home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSEEEETTTTGGGGRRRROOOOUUUUPPPPSSSS((((2222)))) SSSSEEEETTTTGGGGRRRROOOOUUUUPPPPSSSS((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- setgroups - set group access list
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ppppaaaarrrraaaammmm....hhhh>>>>
-
- _P_O_S_I_X:
- iiiinnnntttt sssseeeettttggggrrrroooouuuuppppssss((((iiiinnnntttt nnnnggggrrrroooouuuuppppssss,,,, ggggiiiidddd____tttt ****ggggiiiiddddsssseeeetttt))));;;;
- _B_S_D:
- iiiinnnntttt sssseeeettttggggrrrroooouuuuppppssss((((iiiinnnntttt nnnnggggrrrroooouuuuppppssss,,,, iiiinnnntttt ****ggggiiiiddddsssseeeetttt))));;;;
-
- To use the BSD version of _s_e_t_g_r_o_u_p_s, one must either
-
- 1) explicitly invoke it as _B_S_D_s_e_t_g_r_o_u_p_s or
-
- 2) link with the libbsd.a library:
-
- cc -o prog prog.c -lbsd
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_e_t_g_r_o_u_p_s initializes the group access list of the current user process
- according to the array _g_i_d_s_e_t. The parameter _n_g_r_o_u_p_s indicates the
- number of entries in the array. The _s_y_s_c_o_n_f(____SSSSCCCC____NNNNGGGGRRRROOOOUUUUPPPPSSSS____MMMMAAAAXXXX) system call
- may be used to determine at runtime the maximum allowable value for
- _n_g_r_o_u_p_s in the particular kernel configuration (it is an lbootable value
- (_n_g_r_o_u_p_s__m_a_x) which is declared in /var/sysgen/master.d/kernel). If
- using the BSD version, _n_g_r_o_u_p_s may never be greater than NNNNGGGGRRRROOOOUUUUPPPPSSSS (as
- defined in <_s_y_s/_p_a_r_a_m._h>).
-
- Setting _n_g_r_o_u_p_s__m_a_x to zero and rebooting effectively disables multiple-
- groups system-wide. In most cases, however, it will be set to a value
- between _N_G_R_O_U_P_S__U_M_I_N and _N_G_R_O_U_P_S__U_M_A_X (also defined in <_s_y_s/_p_a_r_a_m._h>).
-
- Only the super-user may set new groups or alter the value of _n_g_r_o_u_p_s__m_a_x.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- A successful call returns the number of groups in the group set. A value
- of -1 indicates that an error occurred, and the error code is stored in
- the global variable _e_r_r_n_o.
-
- EEEERRRRRRRROOOORRRRSSSS
- The _s_e_t_g_r_o_u_p_s call will fail if:
-
- [EPERM] The caller is not the super-user.
-
- [EFAULT] The address specified for _g_i_d_s_e_t is outside the process
- address space.
-
- [EINVAL] The _n_g_r_o_u_p_s parameter is greater than NNNNGGGGRRRROOOOUUUUPPPPSSSS or the
- kernel maximum, as specified above.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSEEEETTTTGGGGRRRROOOOUUUUPPPPSSSS((((2222)))) SSSSEEEETTTTGGGGRRRROOOOUUUUPPPPSSSS((((2222))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- multgrps(1), getgroups(2), initgroups(3), sysconf(2)
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- The POSIX and 4.3BSD versions differ in the types of their _g_i_d_s_e_t
- parameter.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-